package com.kakavr.shop.service;

import java.util.List;
import java.util.Map;

import com.kakavr.base.service.IBaseService;
import com.kakavr.page.Pagination;

/**
 * 交易流水
 * @author gang.yang
 *
 */
public interface ITradeFlowService extends IBaseService {
	
	/**
	 * 添加交易流水
	 * @param map
	 */
	void addTradeFlow(Map<String,Object> map);
	
	/**
	 * 添加交易流水
	 * @param map
	 */
	void addActivityTradeFlow(Map<String,Object> map);
	
	
	/**
	 * 交易流水
	 * 
	 * @param map
	 * @return
	 */
	Pagination<Map<String, Object>> selectTradeFlowList(Map<String, Object> map);
	
	/**
	 * 店铺活动交易流水
	 * 
	 * @param map {createTime}
	 * @return
	 */
	List<Map<String, Object>> statisActivityTradeFlowList(Map<String, Object> map);
	
	/**
	 * 统计流水
	 * @param map
	 * @return
	 */
	List<Map<String, Object>> statisticsTradeFlow(Map<String, Object> map);
	
	/**
	 * 活动统计流水  确认收款更新
	 * @param map {storeId,createTime}
	 * @return
	 */
	void updateTradeFlow(Map<String, Object> map);
	
	

}
